package com.uduemc.biso.web.details;

import java.util.Collection;
import java.util.List;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import com.uduemc.biso.core.extities.center.CustomerUser;
import com.uduemc.biso.core.extities.center.custom.CustomerUserRole;

public class CustomerUserDetails extends User {

	public CustomerUserDetails(String username, String password, Collection<? extends GrantedAuthority> authorities) {
		super(username, password, authorities);
	}

	public CustomerUserDetails(String username, String password, boolean enabled, boolean accountNonExpired,
			boolean credentialsNonExpired, boolean accountNonLocked,
			Collection<? extends GrantedAuthority> authorities) {
		super(username, password, enabled, accountNonExpired, credentialsNonExpired, accountNonLocked, authorities);
	}
	private static final long serialVersionUID = 1L;

	private CustomerUser customerUser;
	
	private List<CustomerUserRole> customerUserRoles;
	
	public CustomerUser getCustomerUser() {
		return customerUser;
	}

	public void setCustomerUser(CustomerUser customerUser) {
		this.customerUser = customerUser;
	}

	public List<CustomerUserRole> getCustomerUserRoles() {
		return customerUserRoles;
	}

	public void setCustomerUserRoles(List<CustomerUserRole> customerUserRoles) {
		this.customerUserRoles = customerUserRoles;
	}
	
	

}
